package edu.fsu.cs.SHPE;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import android.graphics.drawable.Drawable;
import android.util.Log;

public class Conference implements Serializable{

	private static final long serialVersionUID = 2577614445665428419L;

	public static String insertId(String string, int id){
		return string.replaceAll("#", id + "");
	}
	
	public static String insertId(String string, long id){
		return insertId(string, (int)id);
	}
	
	
	public static Map<String, Integer> getTracks(ConferenceContainer container){
		
		Map<String, Integer>map = new HashMap<String, Integer>();
		
		Log.i("gettracks", "size " + container.size());
		
		map.put("All Tracks", 0);
		
		for(Conference c : container){
			
			if(c.getName() != null){
				Log.i("track name", "<" + c.getName() + ">");
				map.put(c.getName(), (int)c.getId());
			}
		}
		
		return map;
	}
	
	
	private String name, title, startDate, endDate, 
	description, email, website, phone, room, organization, twitter;

	private String linkedIn, bio;
	
	public String getLinkedIn() {
		return linkedIn;
	}

	public void setLinkedIn(String linkedIn) {
		this.linkedIn = linkedIn;
	}

	public String getBio() {
		return bio;
	}

	public void setBio(String bio) {
		this.bio = bio;
	}

	private Drawable image;
	
	public Drawable getImage() {
		return image;
	}

	public void setImage(Drawable image) {
		this.image = image;
	}

	public String getOrganization() {
		return organization;
	}

	public void setOrganization(String organization) {
		this.organization = organization;
	}

	public String getTitle() {
		return title;
	}

	public String getRoom() {
		return room;
	}

	public void setRoom(String room) {
		this.room = room;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	private String address, city, province, country, postalCode, lat, lon;

	private long id;

	public String toString(){
		return '<' + name + "><" + startDate + "><" + endDate + "><" + description + "><" + email + "><"
		+ website + "><" + address + "><" + city + "><" + province + "><" + country + "><"
		+ postalCode + "><" + lat + "><" + lon + "><" + phone + ">";
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getWebsite() {
		return website;
	}

	public void setWebsite(String website) {
		this.website = website;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getPostalCode() {
		return postalCode;
	}

	public void setPostalCode(String postalCode) {
		this.postalCode = postalCode;
	}

	public String getLat() {
		return lat;
	}

	public void setLat(String lat) {
		this.lat = lat;
	}

	public String getLon() {
		return lon;
	}

	public void setLon(String lon) {
		this.lon = lon;
	}

	public void setTwitter(String twitter) {
		this.twitter = twitter;
	}

	public String getTwitter() {
		return twitter;
	}

}
